<% if !@communities.nil? && @communities.size > 0 %>
<p class="sidebartitle">已有的社区</p>
<% for community in @communities %>
  <%= link_to "#{community.title}", community_path(community.district, community) %>
  <%= community.district.title %> <%= community.district.title %>
  <p class="itemseparator"></p>
<% end %>
<% end %>